package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 服务器对象 sync_server
 * 
 * @author ruoyi
 */
public class SyncServer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 服务器ID */
    private Long serverId;

    /** 服务器名称 */
    @Excel(name = "服务器名称")
    private String serverName;

    /** 服务器IP */
    @Excel(name = "服务器IP")
    private String serverIp;

    /** 服务器端口 */
    @Excel(name = "服务器端口")
    private Integer serverPort;

    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    /** 密码 */
    private String password;

    /** 服务器类型（0数据库服务器、1文件服务器） */
    @Excel(name = "服务器类型", readConverterExp = "0=数据库服务器,1=文件服务器")
    private String serverType;

    /** 服务器状态（0正常 1停用） */
    @Excel(name = "服务器状态", readConverterExp = "0=正常,1=停用")
    private String status;

    public void setServerId(Long serverId) 
    {
        this.serverId = serverId;
    }

    public Long getServerId() 
    {
        return serverId;
    }
    
    public void setServerName(String serverName) 
    {
        this.serverName = serverName;
    }

    public String getServerName() 
    {
        return serverName;
    }
    
    public void setServerIp(String serverIp) 
    {
        this.serverIp = serverIp;
    }

    public String getServerIp() 
    {
        return serverIp;
    }
    
    public void setServerPort(Integer serverPort) 
    {
        this.serverPort = serverPort;
    }

    public Integer getServerPort() 
    {
        return serverPort;
    }
    
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    
    public void setServerType(String serverType) 
    {
        this.serverType = serverType;
    }

    public String getServerType() 
    {
        return serverType;
    }
    
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("serverId", getServerId())
            .append("serverName", getServerName())
            .append("serverIp", getServerIp())
            .append("serverPort", getServerPort())
            .append("username", getUsername())
            .append("password", getPassword())
            .append("serverType", getServerType())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
} 